Things in spacetime travel on what are known as geodesics, which is the space-time geometry equivalent of straight lines. Using Euclidean Geometry as a reference frame, we say that spacetime "bends" light under the force of gravity (Google "Einstein Rings").
Because light is affected by gravity, it "slows down" when coming out of a gravity well. I put "slows down" in quoted because it does NOT slow down locally, it just looks that way to a remote observer. The "slowing down" shows up as red-shifting. That is, the light is still traveling at c but its frequency shifts towards the red end of the spectrum.
The gravity in a black hole is so strong that the geodesic points back towards the singularity at the center of the BH and the light, while traveling at c, locally, away from the singularity is in fact moving towards it along the geodesic.