[PATCH] ubifs: Fix wrong memory allocation