Travel shouldn't be a problem as long as your visa remains valid. If you are spending so much time outside of the country that it is obvious you aren't meeting the employment expectations of an H-1B holder, you might run into some problems at the border.

