The striker has made only one appearance for the Millers so far, his debut as a substitute in the 3-2 defeat at Swindon Town.
He has now temporarily returned to his parent club to have treatment on the niggle, but will return to Don Valley when he is fully fit to resume training.
Williams signed on loan until January as part of the deal that took top scorer Adam Le Fondre to Berkshire.