Update node->length in do_pwrite when extension is true