Effect of quark spins to the hadron distributions for chiral magnetic wave in ultrarelativistic heavy-ion collisions