My understanding in Tennessee that write-ins are allowed but they have to be registered.
Write-ins are not allowed in VA that I’m aware of.
You have to be registered to vote in TN period. I did one time a write-in vote for a candidate for a local office and I registered in Tennessee as Republican in 1979