google
ref
Middle English (in the sense ‘declare on oath’): from Old French esligier, based on Latin lis, lit- ‘lawsuit’; confused in sense with Latin allegare ‘allege’.
wiktionary
ref
alleged + -ly
etymonline
ref
allegedly (adv.)
1828, from alleged + -ly (2).