delete duplicated API function.
chang write/1 to to_binary/1 and to_list_1.