bitmap: fix off-by-8 allocation error