Magnetic field generation in the galactic disk