boadec: prevent overflow during block alignment calculation