If you are using replacement=True and set the length in the sampler to the length of the dataset, some samples of the majority class won’t be drawn.
In practice this doesn’t really matter, since it’s the majority class so missing samples shouldn’t yield any significant issues.
You could of course increase the sampler length, which will thus draw more samples in the epoch, but the same behavior would be used, if you train your model just for more epochs.