Inflow of atomic gas fuelling star formation