Lean forward and use your fingers to pinch your nostrils shut for 10 minutes. Doing this should help the blood clot and stop running, the same way it does when you hold a bandage to a wound on your skin.
Medicated nasal sprays can also help stop the flow. If you have a nasal spray such as Afrin on hand, spray your nose with it before you begin pinching.[2]