It was probably just chasing you because you were moving. I'm glad you got away and all, but if you had stopped and put the bike between you and the dog and then just walked away it probably would have left you alone. Probably.
Also, my pitbull will bark at passers by but she just wants to play, not eat them as is a common misconception.