Thermodynamics of chiral fermion system in a uniform magnetic field