written function finding free blocks