If you are using cartridge method, you should use another method.
http://projectpokemon.org/forums/showthread.php?44618-RAM2Sav-Save-File-Dumping-Injection-for-X-Y-OR-AS
If, you want i can upload my RAM save. (They have different sizes ).
RAM-OR.ZIP it is on attachment.