Added check for available space when making an allocation matching (LEV-...

...85)