added changes to ssd_alloc