Plasmaspheric mass loss and refilling as a result of a magnetic storm