If you have a "gluten allergy" or maybe gluten sensitivity, you may have not been absorbing some nutrients well enough so I doubt that inositol by itself would help, that's part of the B complex and it's always advisable to take the entire complex instead of isolating one, or at least add the complex so you won't cause an imbalance of the rest.
In reality, I've always heard biotin being mentioned more often for hairloss, but in reality I believe the lack of several or almost of the B vigtamins will cause hairloss. Other nutrients that help with hairloss are iodine and silica and MSM, I grew back hair that had fallen off in gobs during a medication induced hyperthyroid period taking a combo of the last 2 and I'm just ordering a bottle because lately my hair doesn't look as full.