in case st_blksize is not properly set

Signed-off-by: Mattias Andrée <maandree@operamail.com>
use st_blksize in c implementation

Signed-off-by: Mattias Andrée <maandree@operamail.com>