Jelly, 6 bytes
S÷@×"S
or
÷S$×"S
Input is via two command-line arguments, masses first, coordinates second.
Explanation
S Sum the masses.
x" Multiply each vector by the corresponding mass.
÷@ Divide the results by the sum of masses.
S Sum the vectors.
or
÷S$ Divide the masses by their sum.
×" Multiply each vector by the corresponding normalised mass.
S Sum the vectors.