fix counting of blocks for datfile, cpfile and sufile