Blood while spitting is usually due to throat injury, or chest infection like lung tuberculosis or injury to rib cage. Head injury usually causes driblling of blood or cerebrospinal fluid not only while coughing.
Next Steps
CBP ,X-ray Chest, X-ray head usually will help in diagnosis.
Health Tips
Do not ignore. Get investigated immediately.