mm: fix mm_alloc() when reusing old chunk space

mm_alloc() failed to properly link the new chunk when reusing a gap
previously created by freeing an old chunk. This patch fixes the
problem.

Signed-off-by: Radu Rendec <radu.rendec@cloudbit.ro>