Allegiance means loyalty and fidelity, especially the faithful maintenance of an association or obligation.
The term is used in the sense of maintaining loyalty and fidelity to the house of Saul.
The underlying expression literally refers to keeping a charge or responsibility.