If you have downloaded all the HTML and images needed, create an index.html that links them all. Dropping that into calibre should create a HTMLZ with all the files. That can then be converted to epub. But...
If you are using calibre and reading fanfic, then get the
FanFictionDownloader plugin. You give it the URL of the story, it produces a nice epub.