Either switch in advance if spots open up or get to the permit office the day before and figure out an appropriate trailhead that has walk-ins available. Hopefully let they you keep your Whitney exit when you do that.
How far in advance can I get the walk-up permits? Or does it have to be the day of?