calculation written bytes fixed