fixed an overflow bug in ftl_obj_write, added a write test (passes) and a a write/read test (fails)