refactor mrb_realloc()

remove the redundant codes with mrb_malloc_simple()