It's completely normal for a hamster to mark in their ball. However, if you're using a ball, it's for this reason (among others) that she should only be allowed to run for 10 min or so intervals then taking a break. I personally don't recommend hamster balls as they really don't provide much in the stimulation department for hamsters. If you could instead provide a playpen, that would be much more ideal