Well for me personally, we would hardly use those in casual conversation except for loyalty.
'Allegiance' is commonly used more in literary works, but we don't use the word fidelity.
We use it's opposite more: infidelity.
Also, all of them are synonyms for loyalty.
Sentences:
1.) She showed immense loyalty to her friend.
2.) Her allegiance to her friend through their childhood made them best friends in adulthood.
3,) His infidelity caused their marriage to end. (*Note I used infidelity)
So in short:
'Allegiance' is used more in writings and such (like essays, books, etc.)
Fidelity is not used at all. It's opposite: infidelity is used.
Loyalty is the most commonly used out of the three. This is used in conversation and books!
I hope I answered your question! If you have anymore just ask~