What was your code like before using Spring MVC, because the principle should remain the same.
jquery load() loads asynchronously, so the next statement can very well be executed before the load is finished.
Maybe you can get around this using a callback after the load (perhaps this is what you did before?). Please take a look at How to load page synchronously using jQuery.
try:
$('#tableDiv').load('genCityInqGV.htm?type=0&number=1', function(){
$( "#dialog" ).dialog('close');
});