When i tried to do the same in ESXi 5.1 it worked without any issues. But in case of 5.5 it failed saying that
"Task ReconfigVM_Task failed with error: The attempted operation cannot be performed in the current state (Powered on)."
Do we have any restriction or known issues that we cannot set diskshares on a powered ON vm?