overrid write len io except len length len len index bound except header process write len todo make effici larg os len write 