Probably, you are taking some medicine which creates constipation. As the stool become hard, blood will be seen in the stool. Take lot of fruits and green leafy vegetables. For iron defficiency, take 2-3 dates daily, regularly, which is rich in iron. Both problems are not interconnected.