I agree with des, I cannot believe your doctor let you go home thinking that. If he seriously thought it was a bowel obstruction you would have been admitted to hospital. You would have nausea and vomiting and wouldnt be able to pass a stool.
The blood could be caused by hemmies, a fissure or a rectal ulcer. Try not to worry but you need some further advice from a doctor on this matter.