implement mallctl_write