Coughing up blood could be due to an infection a sinus infection or a lung infection. Sometimes trauma to the lungs can cause this or it could just be throat irritation. It could also be due to tumors of the lung. Would advise you to consult your primary care physician for evaluation and therapy. In the meantime try to avoid smoking.