added function checking if required block is allocated