- We consider the magnetic helicity balance for the galactic dynamo in the framework of the local dynamo problem, as well as in the no-z model (which includes explicitly the radial distribution of the magnetic fields). When calculating the magnetic helicity balance we take into account the redistribution of the small-scale and large-scale magnetic fields between the magnetic helicities, as well as magnetic helicity transport and diffusion due to small-scale turbulence. We demonstrate that the magnetic helicity flux through the galactic disc boundaries leads to a steady-state magnetic field with magnetic energy comparable to the equipartition energy of the turbulent motions of the interstellar medium. If such flux is ignored, the steady-state magnetic field is found to be much smaller than the equipartition field. The total magnetic helicity flux through the boundaries consists of both an advective flux and a diffusive flux. The exact ratio of these contributions seems not to be crucial for determining the strength of the steady-state magnetic field and its structure. However at least some diffusive contribution is needed to smooth the magnetic helicity profile near to the disc boundaries. The roles of various transport coefficients for magnetic helicity are investigated, and the values which lead to magnetic field configurations comparable with those observed are determined.