Galactic winds and circulation of the interstellar medium in dwarf galaxies