If varname contains namespace qualifiers, the local variable's name is the unqualified name of the global variable, as determined by the namespace tail command.
I'm a little surprised that write3 beats write7, but the figures don't lie.
Then all accesseses to that local entry are transparently redirected to the linked global entry.