Always pay attention to your surroundings while cycling. Anticipate the dogs intent. A good loud, and I mean loud "NO", "GET", or "GO HOME" will usually work well. Dogs hate being sprayed from a water bottle. Frame pumps get their attention also! Other than that, few dogs can keep up with a good sprint.
Don't forget to use neosporin on your bite. Go back to the location to get vet records for those dogs.