For the future, or maybe you know by now, you are not required to carry an ID while walking anywhere in public. However, you are required to identify yourself in most places, if asked by an officer of the law, usually by giving your full name.
You are only required to identify yourself if they have reasonable suspicion that you've committed, or are about to commit, a crime. Of course, that all gets sorted out post-arrest if you don't cooperate, which sucks for us.
In the described event, particularly a person fleeing an officer before the officer even talks to them - I would not be surprised if they considered that reasonable suspicion.
Per the recent events in Baltimore, simply running from the police does not appear to be a reason for arrest (IANAL). However, it's probably a good enough reason for police to pursue and detain you for questioning.