Thanks for the details.
So far you have received correct medication.Low feritin levels can cause hair loss.
You need to continue the treatment for optimal results.If you continue to face heartburn
problem you can take antacid
tablets like tab.ranitidine
150mg twice daily before meals.
Hope this helps.