The globular cluster system of the galaxy. IV - The halo and disk subsystems