JoSAA allocates seats based on a candidate's rank, choices filled, and the availability of seats in various institutes and courses. The allocation is done through multiple rounds, considering the preferences of the candidates.