Spin Polarization of an Ensemble of Alkali Atoms with Zero Average Magnetization