The generation of baryon asymmetry and hypermagnetic field by the chiral vortical effect in the presence of sphalerons