An allusion is a type of writing that makes a reference to a person, place or event, it can be real or imaginary, it depends.
Allegories are like metaphors, they bring hidden meanings in figures, actions, imagery, or events, which creates a moral or spiritual meaning the author tries to show.
I don't know if this helped in any way, but I hope it helped a little.