IceCube neutrinos from hadronically powered gamma-ray galaxies