writeBoot creates the named.boot file
parameters are the
output file
boolean indicating primary or secondary
String indicating a folder to prepend to the files,
if the string is null, then don't save the files
if the string is empty, then don't prepend anything
if the string contains something, then prepend the filenames with the string
(note that the string should only be passwd for secondary files, not primaries)