Yes, there are many all inclusive resorts in Barcelona. These resorts typically include accommodation, meals, drinks, and activities in the price.
Although, if you're only interested in the accommodation, then we recommend booking a room at one of Barcelona's many hotels. You'll find that most hotels offer great rates, and you'll have more freedom to explore the city.
If you're going to be in Barcelona for only few days, then we recommend staying in a hotel. This way you will be able to experience all that the city has to offer, especially the delicious food in many of its restaurants.