title: writeToFile:atomically only works first time
body: <p>When my app starts, looks if a plist exists, if it doesn't it creates it.</p>
  
  <pre><code>NSFileManager *fileManager = [NSFileManager defaultManager];
      NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *documentsDirectory = [paths objectAtIndex:0];
      NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"history.plist"];
      success = [fileManager fileExistsAtPath:filePath];
      if (success) {
          NSArray *arr = [[NSArray alloc] initWithContentsOfFile:[documentsDirectory stringByAppendingPathComponent:@"history.plist"]];
          for (NSDictionary *par in arr) {
              [self.history addObject:[[Paradero alloc] initWithDictionary:par]];
          }
      } else {
          [fileManager createFileAtPath:filePath contents:nil attributes:nil];
      }
  </code></pre>
  
  <p>Now, when the user closes the app, to provide persistance I save the data to that file</p>
  
  <pre><code>- (void)applicationDidEnterBackground:(UIApplication *)application {
      /*
       Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
       If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
       */
      NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *documentsDirectory = [paths objectAtIndex:0];
      NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"history.plist"];
      NSLog(@"%@", filePath);
      NSMutableArray *temparray = [[NSMutableArray alloc] initWithCapacity:5];
      for (Paradero *parada in self.history) {
          [temparray addObject:[parada asDictionary]];
      }
      NSLog(@"%@", temparray);
      NSLog(@"%c",[temparray writeToFile:filePath atomically:NO]);
  
      NSLog(@"yei");
  }
  </code></pre>
  
  <p>The object is converted to a Dictionary with NSString, NSArrays so it can be saved to the file. The first time this ever happens, that means, the file was created, nothing on it, it works just fine, but when is time to save new data, it fails, no reason given.</p>