Today's e-Infrastructures are deployed to enable easy and secure access to heterogeneous resources (e.g., instrument, computing and storage elements) by exploiting cloud and grid technologies. Since e-Science applications are usually characterized by huge data transfers, user interactivity and high computational loads, the selection and allocation of cloud or grid resources dramatically affect their performance. Starting from a previous work by the same authors, this paper proposes a new distributed resource allocation algorithm, referred to as MRA3D-H, capable of handling multiple resource requirements for jobs/tasks that arrive to the computing environment of the e-Infrastructure. More specifically, MRA3D-H aims at finding a trade-off between execution time and cost of data-intensive applications by taking into account performance parameters at system and network levels as well as the economic cost of computational resources. Simulations have been carried out to compare the performance of MRA3D-H with other resource allocation algorithms in the DORII project environment.