In my county the ballots are numbered by the poll worker and that number is put by the name of the voter on the roll so that if questioned that ballot of that voter can be found and pulled.
Judging from the responses on this thread, there are apparently many places now were the secrecy of the ballot has been destroyed.
That's an interesting bit of information, especially since noone seems to be particularly upset about it.