Partition function for a mass dimension one fermionic field and the dark matter halo of galaxies