they vote while they are there.... at the proper tribal council thing..
then they return to america until the entire show has aired... they obviously have some sort of contract/deal thing about not being able to tell who got voted off when etc etc...
then once the season has aired, they film...