I get an error as well, but with the following StataMP (version 15.1) error message. Below is the Stata code:
/* mtcars saved in write_dta with version = 14 can be read in by Stata */
/* but the same thing with version = 15 cannot */
* .dta file corrupt
* The marker </sortlist> was not found in the file where it was expected to be. This
* means that the file was written incorrectly or that the file has subsequently become
Importantly, this only happens when version = 15 in write_dta. I can open the dta fine when version = 14 (the default) or any other version value from 8 to 14.