modified ksuf mem alloc2