Sam Gallagher's header saw Blackburn move within one goal of an unlikely late comeback versus Stoke City.