You've confused allegory with applicability.
Allegory is when something is written specifically to represent something else.
Applicability is when two different, unrelated things can be compared in principle - finding parellels.
I have given quotes from Tolkien that speak of this matter
in my post here.