As the digital era has progressed, so has the volume of digital data, making secure storage of this vast amount of data an increasingly important concern for data administrators. Cloud computing and the ease of storing and accessing data attracted a large number of IT professionals and administrators to migrate from physical infrastructure to cloud infrastructure. Cloud computing provides a wide range of services, but its primary functionality is the efficient distribution of resources among the many people who need to use the cloud. Effective resource allocation, decreased response time, and increased resource availability are all benefits of optimising cloud computing Quality of Service (QoS), which also helps to keep user data safe in the cloud infrastructure. Even though many studies have sought a high quality of service (QoS), no success has been found in combining efficient resource sharing with privacy protection. This paper uses Block chain technology and the Vibrant Neighborhood Particle Swarm Optimization (VNPSO) algorithm to overcome the aforementioned challenge of achieving better QoS with high levels of data security. While the Block chain has a reduced parameter, it is highly efficient in protecting cloud network storage data, while the Vibrant Neighborhood Particle Swarm Optimization (VNPSO) algorithm is an improvised version of Particle Swarm Optimization (PSO) and is efficient in resource allocation without any restrictions or boundaries in the neighbourhood available resources. Experimentation shows that the proposed meta-heuristic hybrid algorithm outperforms conventional algorithms in terms of Quality of Service.