actually calculate valid blocks and blocksizes for getattr