Direct numerical simulations of the galactic dynamo in the kinematic growing phase