Added parameter "app_id" to write methods of DataSpaces and DIMES