The logic seems a bit circular to me. How exactly can it be determined how many electoral votes a candidate won unless they have all been allocated?
The election night we only get information about who won the most EVs. Upon knowing which candidate is the ‘winner’, the rest of the EVs are allocated to him/her. Granted, this only works with odd number of EVs.