Index: uspace/srv/fs/exfat/exfat_ops.c
===================================================================
--- uspace/srv/fs/exfat/exfat_ops.c	(revision 9558eaa61075255187d03c59ab8b49ec615c2564)
+++ uspace/srv/fs/exfat/exfat_ops.c	(revision 75513701e805fb646fc15da4c37a297032e86822)
@@ -395,5 +395,5 @@
 	bs = block_bb_get(devmap_handle);
 
-	if (nodep->fragmented) {
+	if (!nodep->fragmented) {
 		rc = bitmap_append_clusters(bs, nodep, clusters);
 		if (rc != ENOSPC)
@@ -439,5 +439,5 @@
 	bs = block_bb_get(devmap_handle);
 
-	if (nodep->fragmented) {
+	if (!nodep->fragmented) {
 		exfat_cluster_t clsts, prev_clsts, new_clsts;
 		prev_clsts = ROUND_UP(nodep->size, BPC(bs)) / BPC(bs);
