Writing multiple time in the same file with vtkXMLPolyDataWriter

This is indeed a limitation of the .vtp format. You may want to look into VTKHDF: VTK File Formats - VTK documentation