fixes to getBlock and fs_putBlock