Jim Allenby hit an unbeaten half-century to help Glamorgan move into the lead against Division Two rivals Worcestershire at the SWALEC Stadium.